package tools;

import java.util.Comparator;

import model.components.Link;

public class LinkComparator implements Comparator<Link> {

	@Override
	public final int compare(Link a, Link b) {
		int x = a.getId() ;
		int y= b.getId() ;
		return Integer.valueOf(x).compareTo(Integer.valueOf(y));
	}
}

